<div class="ibox float-e-margins" th:id="'div_'+${num}+''" >
    <div class="ibox-title">
        <h5>工作任务</h5><span style="float:right;position:relative; width:80px;height:20px;" class="bs-glyphicons glyphicon glyphicon-minus">
                    <span th:onclick="|delTask(${num})|"><a>删除任务</a></span>
                </span>
    </div>
    <div class="ibox-content">
        <div class="form-group">
            <label class="col-sm-3 control-label">产品/项目：</label>
            <div class="col-sm-8">
                <select th:name="'daliyTask['+${num}+'].productType'" onChange="selectProduct(this)" class="form-control">
                    <option value="">请选择</option>
                    <option value="0">产品</option>
                    <option value="1">项目</option>
                </select>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">产品/项目名称：</label>
            <div class="col-sm-8">
                <select th:name="'daliyTask['+${num}+'].productId'" class="form-control">
                    <option value="">请选择产品/项目</option>
                </select>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">需求/任务编号：</label>
            <div class="col-sm-8">
                <input th:name="'daliyTask['+${num}+'].taskNumber'" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">需求来源：</label>
            <div class="col-sm-8">
                <select th:name="'daliyTask['+${num}+'].projectId'" class="form-control " th:with="project=${@sysProjectService.selectSysProjectList(null)}">
                    <option value="0">本部</option>
                    <option th:each="p : ${project}" th:text="${p.projectName}" th:value="${p.projectId}"></option>
                </select>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label"><span style="color: red">*</span>实际工作时长（小时数）：</label>
            <div class="col-sm-8">
                <input th:name="'daliyTask['+${num}+'].workTime'" class="form-control" type="text" value="8" range=[0,24] required>
            </div>
        </div><div class="form-group">
            <label class="col-sm-3 control-label"><span style="color: red">*</span>标准工作时长（小时数）：</label>
            <div class="col-sm-8">
                <input th:name="'daliyTask['+${num}+'].standardTime'" class="form-control" type="text" value="8" range=[0,24] required>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">提交代码量（行数）：</label>
            <div class="col-sm-8">
                <input th:name="'daliyTask['+${num}+'].codeAmount'" class="form-control" type="text" digits="true">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label"><span style="color: red">*</span>工作内容：</label>
            <div class="col-sm-8">
                <textarea th:name="'daliyTask['+${num}+'].taskContent'" class="form-control" required></textarea>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">完成比例：</label>
            <div class="col-sm-8">
                <select th:name="'daliyTask['+${num}+'].percentage'" th:with="type=${@dict.getType('sys_percentage')}" class="form-control ">
                    <option value="100">100%</option>
                    <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
                </select>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">备注：</label>
            <div class="col-sm-8">
                <textarea th:name="'daliyTask['+${num}+'].remark'" class="form-control"></textarea>
            </div>
        </div>
    </div>
</div>
